﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FacturIT.Service.Company
{
    public class CompanyDTO
    {
        private FacturIT.BLL.Model.Company.Company company;

        public CompanyDTO(FacturIT.BLL.Model.Company.Company company)
        {
            this.company = company;
        }
        public bool HasObject { get { return company != null; } }


        public int CompanyID
        {
            get
            {
                return company.CompanyID;
            }
            private set
            {
            }
        }
        public string CompanyName
        {
            get
            {
                return company.Name;
            }
            private set
            {
            }
        }
        public string Street
        {
            get
            {
                return company.Street;
            }
            private set
            {
            }
        }
        public string PostalCode
        {
            get
            {
                return company.PostalCode;
            }
            private set
            {
            }
        }
        public string City
        {
            get
            {
                return company.City;
            }
            private set
            {
            }
        }
        public string Country
        {
            get
            {
                return company.Country;
            }
            private set
            {
            }
        }
        public string CompanyPhone
        {
            get
            {
                return company.Phone;
            }
            private set
            {
            }
        }

        public int? Owner
        {
            get
            {
                return company.Owner;
            }
            private set
            {
            }
        }
    }
}